String Uploader

Block Group: Data Services
Block Icon: String Uploader block icon

The String Uploader block saves a string as a new file in this project. If a file with the specified name and extension already exists, this block replaces the contents of the existing file.

Input/Output Properties

The following properties of the String Uploader block can take input and give output.

invoke causes the string to be uploaded. The invoke property works only if enabled is set to TRUE.

enabled specifies whether the String Uploader block is enabled.

path specifies where to upload the string, relative to the root of this project. Must include a file name and extension.

data holds the string that gets uploaded.

deleteEmptyFile specifies what happens when the data property is null.


Output Properties

The following properties of the String Uploader block can give output but cannot take input.

onComplete fires when the string has been uploaded.

error returns the error message, if any.


Example

The following image demonstrates a typical use of the String Uploader block. In this example, when the String Uploader block is invoked, a file named new_file.txt is created.

String Uploader dataflow model